home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------------------
- File: PaletteExt.idl
-
- Contains: Palette interface
-
- Written by: Sue Dumont
- Andrey Dolgachev
-
- Copyright: © 1995 by Apple Computer, Inc., all rights reserved.
- ------------------------------------------------------------------------------*/
-
- #ifndef _PALETTEEXTENSION_
- #define _PALETTEEXTENSION_
-
- #ifndef _EXTENSN_
- #include <Extensn.idl>
- #endif
-
- #ifndef _SCRIPTRUNNERVERSION_
- #include "ScriptRunnerVers.h"
- #endif
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODPart;
- interface SampleCode_ScriptRunner;
-
- //==============================================================================
- #pragma somemittypes on
-
- const ODISOStr kPaletteExtension = "Apple Computer:Extension:ScriptPalette";
-
-
- #ifdef __PRIVATE__
- //==============================================================================
- // Implementation Types
- //==============================================================================
-
- #endif
-
- //==============================================================================
- // som_SESettingsExtension
- //==============================================================================
-
- module Samples
- {
- interface PaletteExt : ODExtension
- {
- void Show();
- void Hide();
- ODBoolean IsPaletteVisible();
- ODBoolean Move(in ODPoint topleft);
- ODPoint* GetLocation();
- void SetClient(in ODPart client);
-
- #ifdef __SOMIDL__
- implementation
- {
- majorversion = somClassMajorVersion;
- minorversion = somClassMinorVersion;
-
- functionprefix = PaletteExt__;
-
- override:
- somInit,
- somUninit,
- InitExtension,
- Acquire,
- Release;
- releaseorder:
- Show,
- Hide,
- IsPaletteVisible,
- Move,
- GetLocation,
- SetClient;
-
- #ifdef __PRIVATE__
- passthru C_xh =
- "class SampleCode_ScriptRunner;";
-
- SampleCode_ScriptRunner fOwner;
- #endif
- };
- #endif
- };
- };
-
- #pragma somemittypes off
-
- #endif
-